cmake_minimum_required( VERSION 3.8 )
project(test_contracts)

if( EOSIO_COMPILE_TEST_CONTRACTS )
   set(EOSIO_WASM_OLD_BEHAVIOR "Off")
   if(USE_EOSIO_CDT_1_7_X OR USE_EOSIO_CDT_1_8_X)
      find_package( eosio.cdt REQUIRED )
   else()
      find_package( cdt REQUIRED )
   endif()
endif()

if ("${CMAKE_GENERATOR}" STREQUAL "Ninja")
   add_compile_options(-fcolor-diagnostics)
endif()

if( USE_EOSIO_CDT_1_7_X )
   add_definitions(-DUSE_EOSIO_CDT_1_7_X=true)
elseif( USE_EOSIO_CDT_1_8_X )
   add_definitions(-DUSE_EOSIO_CDT_1_8_X=true)
endif()

add_subdirectory( asserter )
add_subdirectory( deferred_test )
add_subdirectory( get_sender_test )
add_subdirectory( get_table_test )
add_subdirectory( get_table_seckey_test )
add_subdirectory( integration_test )
add_subdirectory( no_auth_table )
add_subdirectory( noop )
add_subdirectory( payloadless )
add_subdirectory( proxy )
add_subdirectory( ram_restrictions_test )
add_subdirectory( reject_all )
add_subdirectory( restrict_action_test )
add_subdirectory( snapshot_test )
add_subdirectory( test_api )
add_subdirectory( test_api_db )
add_subdirectory( test_api_multi_index )
add_subdirectory( test_ram_limit )
add_subdirectory( action_results )
add_subdirectory( wasm_config_bios )
add_subdirectory( params_test )
add_subdirectory( crypto_primitives_test )
add_subdirectory( bls_primitives_test )
add_subdirectory( get_block_num_test )
add_subdirectory( nested_container_multi_index )
